package day04;

/**
 * @author Huangjin
 * @version 1.0
 * @date 2023/2/15 16:53
 */
public class ForDemo {
    public static void main(String[] args) {
        for (int num = 1;num<=9;num++){
            System.out.println(num+"*9="+num*9);
        }
        for (int num = 1;num<=9;num+=2){
            System.out.println(num+"*9="+num*9);
        }
        for (int num = 9;num>0;num--){
            System.out.println(num+"*9="+num*9);
        }
        /*
            执行过程：
            num = 9 true 输出
            num = 8 true 输出
            num = 7 true 输出
            num = 6 true 输出
            num = 5 true 输出
            num = 4 true 输出
            num = 3 true 输出
            num = 2 true 输出
            num = 1 true 输出
            num = 0 false 结束循环
         */
        for (int times=0;times<5;times++){
            System.out.println("行动是成功的阶梯");
        }
        System.out.println("继续执行...");
    }
}
